package rpc.server;


import rpc.intf.ServiceProvider;
import rpc.intf.impl.DefaultServiceProvider;
import rpc.services.HelloService;
import rpc.services.impl.HelloServiceImpl;

public class TestServer {
    public static void main(String[] args) {

        HelloService helloService = new HelloServiceImpl();

        ServiceProvider serviceRegistry = new DefaultServiceProvider();

        RpcSocketServer rpcServer = new RpcSocketServer(serviceRegistry, 9000);

        rpcServer.publishService(helloService, helloService.getClass());
    }
}
